package PaiXu.a05Recursiondemo5;

public class Test3 {
    public static void main(String[] args) {
        int number = 6;
        int result = fibonacci(number);
        System.out.println(result);
    }
    public static int fibonacci(int number){
        if(number==1||number==2){
            return 1;
        }
        return fibonacci(number-1)+fibonacci(number-2);
    }
}
